package com.coolwen.spring.aop.java;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author CoolWen
 * @version 2020-03-26 9:45
 */
public class TestJava {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(AopConfig.class);
        ICalFibonacci icf = (ICalFibonacci) ctx.getBean("calFibonacci");
        icf.calFibonacciByLoop(40);
    }
}
